<?php

//http://mysite.com/hello world

$string = "Hello this \"is\" 'hello' <>";
$encrypt =  urlencode($string);
var_dump($encrypt);
$decrypt = urldecode($encrypt);
var_dump($decrypt);

